package com.orilife.create;

import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;
import android.widget.ImageView;

import com.example.orllife.CoolMakingApplication;
import com.example.orllife.R;
import com.orilife.bean.Order;
import com.zcw.togglebutton.ToggleButton;
import com.zcw.togglebutton.ToggleButton.OnToggleChanged;

/**
 * Created by haifang on 2015/7/4.
 */
public class BuyAndShareActivity extends Activity {
	ImageView iv_back;
	ToggleButton toggleBtn;
	List<Order> orderList;
	int totalGoodsNum = 1;
	float totalGoodsPrice = (float) 60;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_complete);
		CoolMakingApplication.getInstance().addActivity(this);  
		toggleBtn = (ToggleButton) findViewById(R.id.togglebutton);
		
		iv_back = (ImageView) findViewById(R.id.iv_back);
	
		iv_back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				BuyAndShareActivity.this.finish();
			}
		});

		
		toggleBtn.setOnToggleChanged(new OnToggleChanged() {

			@Override
			public void onToggle(boolean on) {
				// TODO Auto-generated method stub
				if (on) {
				
				} else {
					
				}

			}
		});


		
	}
	
	@Override
	public void finish() {
		// TODO Auto-generated method stub
		super.finish();
		CoolMakingApplication.getInstance().removeActivity(this);  
	}

	
}